package com.app;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.annotation.PreDestroy;

@SpringBootApplication
@MapperScan("com.app.dao")
@EnableTransactionManagement
@EnableScheduling
public class Application {
    @Value("${tcpServer.enabled:false}")
    private boolean socketEnabled;

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}